package icu.feigroup.infrastructure.dao;

import icu.feigroup.infrastructure.dao.po.GroupOrder;
import icu.feigroup.infrastructure.dao.po.GroupOrderList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

/**
 * projectName:icu.feigroup.infrastructure.dao
 *
 * @author 飞
 * @since 2025/2/22 22:00
 * description:
 */
@Mapper
public interface GroupOrderMapper {
    void insert(GroupOrder groupOrder);

    int updateAddLockCount(String teamId);

    int updateSubtractLockCount(String teamId);

    GroupOrder queryGroupProgress(String teamId);

    GroupOrder queryGroupBuyTeamByTeamId(String teamId);

    int updateAddCompleteCount(String teamId);

    int updateOrderStatusToComplete(String teamId);

    List<GroupOrder> queryGroupBuyProgressByTeamIds(Set<String> teamIds);

    Integer queryAllTeamCount(Set<String> teamIds);

    Integer queryAllTeamCompleteCount(Set<String> teamIds);

    Integer queryAllUserCount(Set<String> teamIds);
}
